package com.iplant.wms.service.basicenum.wms;


import com.iplant.base.po.enums.BaseEnum;

public enum WMSStockAlarmType implements BaseEnum {
	/**
	 * 默认 无须处理
	 */
	Default(0, "默认"),

	/**
	 * 安全库存预警
	 */
	SafeStock(1, "安全库存预警"),
	/**
	 * 库存超限预警
	 */
	LimitStock(2, "库存超限预警"),
	/**
	 * 质保期预警
	 */
	SafeDate(3, "质保期预警 "),
	/**
	 * 呆滞物料预警
	 */
	DeadDate(4, "呆滞物料预警"),
	/**
	 * 存储超期预警
	 */
	MaxDeadDate(5, "存储超期预警");

	private int value;
	private String label;
	private String remark="";

	WMSStockAlarmType(int value, String label) {
		this.value = value;
		this.label = label;
	}

	/**
	 *
	 * @param val
	 * @return
	 */
	public static WMSStockAlarmType getEnumType(int val) {
		for (WMSStockAlarmType type : WMSStockAlarmType.values()) {
			if (type.getValue() == val) {
				return type;
			}
		}
		return null;
	}
	@Override
	public int getValue() {
		return value;
	}

	@Override
	public void setValue(int value) {
		this.value = value;
	}
	@Override
	public String getLabel() {
		return label;
	}

	@Override
	public void setLabel(String label) {
		this.label = label;
	}

	@Override
	public String getRemark() {
		return remark;
	}

	@Override
	public void setRemark(String remark) {
		this.remark = remark;
	}
}
